<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>公司简介</title>
	<link rel="stylesheet" href="__PUBLIC__/css/style.css">
	<style type="text/css">
		dl{overflow: hidden;zoom: 1;margin-bottom: 20px;font-family: '微软雅黑';font-size: 14px;}
		dt{float: left;width: 100px;font-size: 14px;padding: 3px 0 0 0;color: #333;text-align: right;}
		.edui-default{float: left;}
	</style>
</head>
<body style="min-width: 100%;">
<div class="form">
	<form method='post' id="form" action="{:U(MODULE_NAME. '/Webconf/profileLayerPost',array('type'=>$type,'id'=>$id))}">
		<dl>
		  <dt>名称：</dt>
		  <dd><input type="text" name="title" class="inp_default" value="{$info.title}" ></dd>
		</dl>
		<dl>
		  <dt>内容：</dt>
		  <dd>
		  	<textarea name="content" id="content">{$info.content|pic_remote=###}</textarea>
		  </dd>
		</dl>
		<dl>
		  <dt>描述：</dt>
		  <dd>
		  	<textarea name="description" rows="5" cols="60" style="resize: none;">{$info.description}</textarea>
		  </dd>
		</dl>
		<dl>
		  <dt>关键词：</dt>
		  <dd>
		  	<input type="text" name="title" class="inp_default" value="{$info.keyWords}" >
		  </dd>
		</dl>
		<dl>
		  <dt>排序：</dt>
		  <dd>
		  	<input type="text" name="sort" class="inp_small" value="{$info.sort}" style="width: 60px;">
		  </dd>
		</dl>
		<dl>
		  <dt>状态：</dt>
		  <dd>
		  	<input class="input-s" type="radio" name="status" value="1" <if condition="$info['status'] eq 1">checked</if> />启用
			<input class="input-s" type="radio" name="status" value="0" <if condition="$info['status'] eq 0">checked</if> />停用
		  </dd>
		</dl>
		<dl>
			<dt> </dt>
			<dd>
				<input type="button" id="button-submit" class="button-green" value="保 存">
			</dd>
		</dl>
	</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<!-- editor -->
<script type="text/javascript" src="{:U(MODULE_NAME. '/Public/editor')}"></script>
<!-- form -->
<script type="text/javascript" src="/Public/js/jquery.form.min.js"></script>
<!-- layer -->
<script type="text/javascript" src="__PUBLIC__/plugin/layer/layer.js"></script>

<script type="text/javascript">
$(function(){
	$('#button-submit').click(function () {
		$('#form').ajaxSubmit({
			dataType:  'json',
			success:function (data) {
				if(data.valid == true)
				{
					layer.msg(data.state);
					window.parent.document.location.reload();
				}
				else
				{
					layer.msg(data.state);
				}
			}
		})
	})
});
</script>
</body>
</html>
